﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/SimpleSite.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Account_Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
  
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="MainContent">
    <table>
    <tr>
        <td>
             <asp:Label ID="lblError" runat="server"></asp:Label><br />
    
             <asp:Label ID="lblMensaje" runat="server" CssClass="failureNotification"></asp:Label>
             
        </td>
    </tr>
   </table>
       
    
    <table width="100%">
        <tr>
            <td width= "73px">
                &nbsp;</td>
            <td style="width: 405px;">
    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" 
        RenderOuterTable="false" 
        onloggedin="LoginUser_LoggedIn" DestinationPageUrl="~/Default.aspx" 
        MembershipProvider="SimcMembershipProvider" 
        onloginerror="LoginUser_LoginError">
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" 
                 ValidationGroup="LoginUserValidationGroup"/>
                 
            <div class="accountInfo">
                <fieldset class="login">
                    <legend>Información de la cuenta</legend>
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" 
                            Width="135px">Nombre de usuario:</asp:Label>
                        <asp:TextBox ID="UserName" runat="server" Width="211px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                             CssClass="failureNotification" ErrorMessage="Nombre es requerido." ToolTip="Nombre es requerido." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Contraseña:</asp:Label>
                        <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="211px" ></asp:TextBox>       
                        
                        
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                             CssClass="failureNotification" ErrorMessage="Contraseña es requerida." ToolTip="Contraseña es requerida." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:HyperLink ID="hplOlvidoContrasenna" runat="server" 
                            NavigateUrl="~/Administracion/OlvidoContrasenna.aspx">¿Olvidó su contraseña?</asp:HyperLink>
                    </p>
                    <p>
                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" 
                            CssClass="submitButton"  Text="Log In" 
                            ValidationGroup="LoginUserValidationGroup" />
                    </p>
                </fieldset>
                </div>
                
        </LayoutTemplate>
        
    </asp:Login>
            </td>
        </tr>
        <tr>
            <td width= "73px">
                &nbsp;</td>
            <td width= "305px">
                &nbsp;</td>
        </tr>
        <tr>
            <td width= "73px">
                &nbsp;</td>
            <td width= "305px">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
